home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
kcl
/
kcl.lha
/
uts
/
readme.doc
< prev
Wrap
Text File
|
1987-05-08
|
4KB
|
135 lines
This file includes following files.
(1)cmpinclude.h include file
(2)object.h include file
(3)ild.c ild for uts
(4)kcl.c invoking kcl
(5)lc.c invoking kcl compiler
(6)lc1.c invoking kcl compiler
(7)lcs1.c invoking kcl compiler
(8)make_cmpnew makefile for cmpnew directory
(9)make_lsp makefile for lsp directory
(10)make_o makefile for o directory
(11)make_unixport makefile for unixport directory
(12)readme this file
(13)unixsave.c unixsave.c for uts
(14)uts_chtab.s char_table for uts
PORTING PROCEDURE
You should check the "dslimit" parameter of your site. If the parameter
is 1 MB, you should contact with your site manager and change the value to
3MB or more.
STEP 1
You have to load kcl system from MT by following commands.
tapevary on 370m (370 is our MTunit No., need replace)
tape -b -d 1600 kcl (kcl is dummy device name)
tar -xo kcl
STEP 2
Copy object.h and cmpinclude.h in this file to h directory.
mv ../h/cmpinclude.h ../h/cmpinclude.old
mv ../unixport/cmpinclude.h ../unixport/cmpinclude.old
cat cmpinclude.h>../h/cmpinclude.h
cat cmpinclude.h >../unixport/cmpinclude.h
mv ../h/object.h ../h/object.old
cat object.h >../h/object.h
Copy unixsave.c and uts_chtab.s to c directory.
mv ../c/unixsave.c ../c/unixsave.c.old
cat unixsave.c >../c/unixsave.c
cat uts_chtab.s >../c/uts_chtab.s
Copy makefiles to proper directory.
mv ../o/makefile ../o/makefile.org
cp make_o ../o/makefile
mv ../lsp/makefile ../lsp/makefile.org
cp make_lsp ../lsp/makefile
mv ../cmpnew/makefile ../cmpnew/makefile.org
cp make_cmpnew ../cmpnew/makefile
mv ../unixport/makefile ../unixport/makefile.org
cp make_unixport ../unixport/makefile
STEP 3
Copy cmpinclude.h into /usr/include.
su
cp cmpinclude.h /usr/include/cmpinclude.h
STEP 4
Now is the time to MAKE. You have to use "dpp" in attbin directory
cd ../attbin
cc -o dpp -DUNIX dpp.c
cd ../o
make
cd ../lsp
make
cd ../cmpnew
make
cd ../unixport
make
STEP 5
You should compile ild.c and put the object in unixport directory.
cd ../uts
cc -o ../unixport/ild ild.c -lld
STEP 6
You should compile kcl.c,lc.c,ic1.c and lcs1.c. Before compiling those
files, you have to check and change KCL_SELF and SYSTEM_DIRECTORY.
cc -o kcl kcl.c
cc -o lc lc.c
cc -o lc1 lc1.c
cc -o lcs1 lcs1.c
After compiling these files, you have to the objects in /usr/bin directory.
This directory may be site dependent.
cp kcl /usr/bin/kcl
cp lc /usr/bin/lc
cp lc1 /usr/bin/lc1
cp lcs1 /usr/bin/lcs1
Thats all you should do.
NOTE
1) cmpinclude.h and object.h has the following enum declaration,
enum type
{ t_cons,
t_start = t_cons,
A bug lives in C compiler of UTS and the compiler fails to compile
this statement.
"cmpinclude.h" and "object.h" in this directory is changed to avoid
this problem. Folloing code is safe.
enum type {
t_cons = 0,
t_start = t_cons,
2) There lives another bug in C compiler. Following three files should be
compiled without -O option.
unixfsys.c
pathname.c (derived from pathname.d)
read.c (derived from read.d)
3) Original unixsave.c includes <sys/file.h>.
For UTS, you have to include <fcntl.h> for <sys/file.h>
Files in this directory are changed following above notes.
If KCL/UTS does not work, please contact.
Akiumi Hasegawa
Department of Earth Sciences
Nagoya University
464,Furo-cho,Chikusa-ku,
Nagoya-shi,
(052)-781-5111(ex.6664)
a49915@ccut.u-tokyo.junet